package com.java.springbootjspshiro.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description:
 * author:张腾
 * date:2021-03-06
 */
@Controller
public class OrderController {

    @RequiresRoles("admin")
    @RequiresPermissions("order:*:*")
    @RequestMapping("order")
    public String temp(){
        System.out.println("进入temp方法");
        return "redirect:/index.jsp";
    }
}
